import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/noteList'
  },
  {
    path: '/noteList',
    name: 'noteList',
    component: () => import('../pages/NoteList/index.vue')
  },
  {
    path: '/note/:id',
    name: '/note',
    component: () => import('../pages/Note/index.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
